const query = require('../../../config/db')

// 查找用户
exports.findAdminUserByName = (name) => {
    let _sql = `select id,name ,password from hx_admin where name="${name}";`
    return query(_sql)
}

// 查找用户
exports.findAdminInfoByTocken = (tocken) => {
    let _sql = `select id,name ,login_time,login_ip from hx_admin where name="${tocken}";`
    return query(_sql)
}
